repo.or.cz
/
and.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Adding some more judges, here and there.
[and.git]
/
lib
/
Mi manual de algoritmos
/
version_actual
/
src
/
c++
/
io_file.cpp
blob
177af456ee887820d36a1bd5351c48db9153389a
1
#include <iostream>
2
#include <fstream>
3
4
using namespace
std
;
5
6
int
_main
(){
7
freopen
(
"entrada.in"
,
"r"
,
stdin
);
8
freopen
(
"entrada.out"
,
"w"
,
stdout
);
9
10
string s
;
11
while
(
cin
>>
s
){
12
cout
<<
"Leí "
<<
s
<<
endl
;
13
}
14
return
0
;
15
}
16
17
18
int
main
(){
19
ifstream
fin
(
"entrada.in"
);
20
ofstream
fout
(
"entrada.out"
);
21
22
string s
;
23
while
(
fin
>>
s
){
24
fout
<<
"Leí "
<<
s
<<
endl
;
25
}
26
return
0
;
27
}